/*
 * @Descripttion: 
 * @Author: liuYaoYu
 * @Date: 2021-12-17 14:57:03
 * @LastEditors: liuYaoYu
 * @LastEditTime: 2021-12-17 15:05:30
 */
package main
import (
	"fmt"
)

func main(){
	// 使用常规的 for  遍历切片
	var arr [5]int=[5]int{1,23,4,5,76}
	// slice:=arr[1:4]
	slice:=arr[:]
	for i:=0;i<len(slice);i++{
		fmt.Println(slice[i])
	}

	for _,val:=range slice{
		fmt.Println(val)
	}
	

}